package com.test.spring.多线程;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncTaskServce {
	@Async
	public void excuteAsyncTask(int i) {
		System.out.println("异步任务执行---：" + i);
	}

	@Async
	public void excuteAsyncTaskPlus(int i) {
		System.out.println("执行异步任务+1---:" + (i + 1));
	}
}
